package com.hxh.dao;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.hxh.entity.Project;
import com.hxh.entity.input.ProjectInput;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface ProjectDao {

    Integer insert(Project pojo);

    int insertList(@Param("pojos") List<ProjectInput> pojo);

    List<Project> select(@Param("pojo") ProjectInput pojo);

    List<Project> selectByDatasourceId(@Param("datasourceId") Integer datasourceId);

    Project selectById(@Param("id") Integer id);

    int deleteById(@Param("id") Integer id);

    List<Project> listPage(Pagination page, @Param("pojo") ProjectInput pojo);

    int update(@Param("pojo") Project pojo);

    int updateSelective(@Param("pojo") ProjectInput pojo);

}
